using System;
using System.Collections.Generic;
using System.Text;

namespace Payroll
{
    public class AddSalariedEmployee:AddEmployeeTransaction
    {
        private double itsSalary;

        public AddSalariedEmployee(int empid, string name, string address, double salary)
            : base(empid, name, address)
        {
            itsSalary = salary;
        }

        public override PaymentClassification GetClassification()
        {
            return new SalariedClassification(itsSalary);
        }

        public override PaymentSchedule GetSchedule()
        {
            return new MonthlySchedule();
        }
    }
}
